<script setup lang="ts">
import { ref } from 'vue'
/*
 const 变量名= ref<{
    gender:0 | 1
  }>({gender:1})
*/
const num = ref(10)
const str = ref('')
const arr = ref<number[]>([])

const obj = ref<{
  name: string
  age?: number
  gender: 0 | 1
}>({
  name: '张三',
  age: 18,
  gender: 1
})
</script>

<template>
  <div class="app-page">app</div>
</template>

<style lang="scss" scoped></style>
